package com.huluobo.kotlinim1911a.contract.login

import com.huluobo.kotlinim1911a.base.BasePresenter

/**
 * Created by lc on 2022/6/23.
 */
class LoginContract {
    //实现功能
    interface Presenter : BasePresenter {
        fun login(userName: String, password: String)
    }

    //UI反馈
    interface View {
        fun onUserNameError()
        fun onPasswordError()
        fun onStartLogin()//为了触发动作,并且弹出登录进度条
        fun onLoggedInSuccess()
        fun onLoggedInFailed(message: String?)
    }
}